<%@ Control Language="c#" Inherits="Portal.Modules.AdminPortal.ModuleListControl"
	CodeBehind="ModuleList.ascx.cs" %>
<%@ Register TagPrefix="portal" Assembly="Portal.API" Namespace="Portal.API.Controls" %>
<h3>
	<asp:Literal ID="ltlTitle" runat="server" />
</h3>
<p>
	<portal:LinkButton ID="lnkAddModule" runat="server" OnClick="OnAddModule" CssClass="linkButton"
		LanguageRef="AddModule" />
</p>
<portal:DataGrid ID="gridModules" runat="server" AutoGenerateColumns="false" Width="100%">
	<Columns>
		<asp:TemplateColumn HeaderStyle-CssClass="w5">
			<ItemTemplate>
				<asp:LinkButton runat="server" ID="lnkModule" OnCommand="OnEditModule" CommandArgument='<%# DataBinder.Eval(Container.DataItem, "Reference") %>'>
					<img src="images/edit.gif" alt="Edit">
				</asp:LinkButton>
			</ItemTemplate>
		</asp:TemplateColumn>
		<asp:TemplateColumn HeaderStyle-CssClass="w5">
			<ItemTemplate>
				<asp:LinkButton runat="server" ID="lnkUp" OnCommand="OnModuleUp" CommandArgument='<%# Container.ItemIndex %>'>
					<img src="images/up.gif" alt="Up">
				</asp:LinkButton>
			</ItemTemplate>
		</asp:TemplateColumn>
		<asp:TemplateColumn HeaderStyle-CssClass="w5">
			<ItemTemplate>
				<asp:LinkButton runat="server" ID="lnkDown" OnCommand="OnModuleDown" CommandArgument='<%# Container.ItemIndex %>'>
					<img src="images/down.gif" alt="Down">
				</asp:LinkButton>
			</ItemTemplate>
		</asp:TemplateColumn>
		<portal:BoundColumn DataField="Title" LanguageRef-HeaderText="Title" HeaderStyle-CssClass="w30"/>
		<portal:BoundColumn DataField="Reference" LanguageRef-HeaderText="Reference" />
		<portal:BoundColumn DataField="ModuleType" LanguageRef-HeaderText="Type" HeaderStyle-CssClass="w10"/>
	</Columns>
</portal:DataGrid>
<br />